<template>
    <div>
                <div>
        <van-nav-bar  class="db" title="购物车" @click-left="onClickLeft" fixed placeholder left-arrow>
        <template #right>
        <van-icon name="search" size="18" />
        </template>
        </van-nav-bar>
        </div>
        <div style="text-align:center">
        <van-count-down  @finish="finish" :time="time" />
</div>
        <van-radio-group v-model="radio">
  <van-cell-group>
      
    <van-cell  icon="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2Fb0994bc6144de6842d1aa3762d38fef08f19ac2052e0-gdubAZ_fw658&refer=http%3A%2F%2Fhbimg.b0.upaiyun.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1640742792&t=10eb19ab2eb127098d22603029acb247" title="微信支付"  clickable @click="radio = '1'">
      
      <template #right-icon>
          
          <div style="margin-right:3px">{{$store.state.gm}}</div>
        <van-radio name="1" />
      </template>
    </van-cell>
    <van-cell icon="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.pconline.com.cn%2Fimages%2Fnospd%2Fupload%2Fupc%2Ftx%2Fpcdlc%2F2012%2F17%2Fc12%2F245951650_1608200122379.png&refer=http%3A%2F%2Fimg.pconline.com.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1640743481&t=241c394ab4477606cbe1554cbc5628c9" title="支付宝支付" clickable @click="radio = '2'">
      <template #right-icon>
          <div style="margin-right:3px">{{$store.state.gm}}</div>
        <van-radio name="2" />
      </template>
    </van-cell>
  </van-cell-group>
</van-radio-group>
<van-button @click="btn" size="large" type="info">确认</van-button>
    </div>
</template>
<script>
export default {
    
    data() {
        return {
            radio:{name:''},
            price:'',
            time:15*60*1000,
        }
    },
    mounted() {
             
        // console.log($store.state.gm);
        // this.price=$store.state.gm
    },
    methods:{
        btn(){
                 this.$toast({
  message: '底部展示',
  position: 'bottom',
});
              console.log(1);
        },
                onClickLeft(){
            this.$router.back(-1)
        },
        finish(){

        //     this.$toast({message:'购买超时',
        //     // type:'fail',
        //     duration:3000,})
           this.$router.push('/goshop')
        },
    }
}
</script>
<style scoped>
span{color: black;}
.van-icon__image{
    height: 30px;
    width: 30px;
}
</style>